package com.example.xiaodu.yuejian12.InterFace;

/**
 * Created by xiaodu on 2018/9/26.
 */
import com.example.xiaodu.yuejian12.Bean.ActivityBean;
import com.example.xiaodu.yuejian12.Bean.ClubBean;
import com.example.xiaodu.yuejian12.Bean.GameBean;
import com.example.xiaodu.yuejian12.Bean.LoginBean;
import com.example.xiaodu.yuejian12.Bean.MasterBean;
import com.example.xiaodu.yuejian12.Bean.RegisterBean;
import com.example.xiaodu.yuejian12.Bean.ShowBean;
import com.example.xiaodu.yuejian12.Bean.TrainBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface RetrofitService {
    @GET("dologin")
    Call<LoginBean> login(@Query("username") String username, @Query("userpass") String password);

    @GET("doregister")
    Call<RegisterBean> register (@Query("username") String username, @Query("userpass") String password, @Query("phone") String phone);

    @GET("getallactivity")
    Call<List<ActivityBean>> getAllActivity();

    @GET("getallclub")
    Call<List<ClubBean>> getAllClub();

    @GET("getallmaster")
    Call<List<MasterBean>> getAllMaster();

    @GET("getallshow")
    Call<List<ShowBean>> getAllShow();
    
    @GET("getallgame")
    Call<List<GameBean>> getAllGame();

    @GET("getalltrain")
    Call<List<TrainBean>> getAllTrain();

    @GET("getshow")
    Call<ShowBean> getShowID(@Query("id") int showID);

    @GET("getactivity")
    Call<ActivityBean> getActivityByID(@Query("id") int activityID);

    @GET("getmaster")
    Call<MasterBean> getMasterByID(@Query("id") int masterID);

    @GET("getgame")
    Call<GameBean> getGameByID(@Query("id")int gameID);

    @GET("getclub")
    Call<ClubBean> getClubByID(@Query("id")int clubID);

    @GET("gettrain")
    Call<TrainBean> getTrainByID(@Query("id")int trainID);

    @GET("signupactivity")
    Call<LoginBean> signupActivity(@Query("aid") int aid,@Query("uid") int uid,@Query("phone") String phone,@Query("people") String people);

    @GET("signupgame")
    Call<LoginBean> signupGame(@Query("gid") int gid,@Query("uid") int uid,@Query("phone") String phone);

    @GET("signupclub")
    Call<LoginBean> signupClub(@Query("cid") int cid,@Query("uid") int uid,@Query("phone") String phone,@Query("email") String email);

    @GET("signuptrain")
    Call<LoginBean> signupTrain(@Query("tid") int tid,@Query("uid") int uid,@Query("phone") String phone,@Query("time") String time);
}
